Andreas Hofmann's helper script
Original Post
Off topic, I know. I've been using the script for months and it's wonderful, but it has recently started to fail. On the main discussion board where it lists all of the topics, none of the topics ever show as unread or new, so I'm having a hard time keeping track of which threads I've read. Also, when I open a thread, every individual comment within the thread shows as new. I've tried uninstalling and reinstalling but that didn't fix it. Does anyone know how to fix it or how to get in touch with Andreas so he can help me? (I'm using Chrome, latest version.)
Reply by Wooba
I am having exactly the same problem using Firefox. I assume that there has been some change with Mark's website -- something in the code has changed. Perhaps Mark knows what might have changed? It started going wrong while he was away a couple of weeks ago.
Reply by Mark Forster
No idea, I'm afraid. It wasn't anything I did, officer. Honest.
Reply by MartyH
I heard that the new version of Greasemonkey broke some other scripts, so it could be related to that. I haven't tried to reinstall an older version. Right now, I am using version 0.9.1.3 which I updated 12 Nov and I have exactly the same problems described above.
There have also been several versions of Firefox lately, so that may be contributing to the problem if it changes where and how information from Greasemonkey and its scripts can be stored.
There have also been several versions of Firefox lately, so that may be contributing to the problem if it changes where and how information from Greasemonkey and its scripts can be stored.
Reply by Andreas Hofmann
I'll look into it.
Reply by Andreas Hofmann
I installed the script in Firefox 8 and Chrome 15 on Mac OS X 10.7. No obvious errors so far. Menu shows up in left sidebar, highlighting of Mark's posts works. No posts are highlighted as new. Let's see if Chrome highlights this topic/post when I submit it in Firefox.
Reply by Andreas Hofmann
Nope, no highlighting. But I do not experience all posts in a thread being highlighted as jFenter described.
Reply by Andreas Hofmann
Other way around?
Reply by Andreas Hofmann
Yup, its's broken alright. Have to find a way to trouble-shoot this without further spamming.
Reply by Andreas Hofmann
By the way, if you installed my script, you can get in touch with me by clicking on my name at the bottom of the userscript options box in the left sidebar. ;-)
Reply by MartyH
I just looked at this post: http://www.markforster.net/forum/post/1630099
Leon's post from Oct 25 was not highlighted, so apparently I had read it. All the following posts were highlighted. So at some time after Oct 25th the script stopped marking individual posts as read. Previously marked posts appear to retain the marking.
Hope this helps with troubleshooting.
Leon's post from Oct 25 was not highlighted, so apparently I had read it. All the following posts were highlighted. So at some time after Oct 25th the script stopped marking individual posts as read. Previously marked posts appear to retain the marking.
Hope this helps with troubleshooting.
Reply by Andreas Hofmann
Little status update: I decided to rewrite the script from scratch and take that opportunity to improve it by tracking read states for each topic instead of only one "last visit" date. Of course, I've had little time until today (Merry Christmas btw.) and I'm running into strange problems.
Currently my problem is that the dates on the overview page don't match with the dates inside a topic. Take the electric task lists topic: http://www.markforster.net/forum/post/1671656
The last post was written 16:15, but in the overview it says the last change was 16:26. Which triggers my script to permanently flag it as unread and drives me crazy. :-)
Be that as it may, I'll soon post a link to the first version of the new script.
Currently my problem is that the dates on the overview page don't match with the dates inside a topic. Take the electric task lists topic: http://www.markforster.net/forum/post/1671656
The last post was written 16:15, but in the overview it says the last change was 16:26. Which triggers my script to permanently flag it as unread and drives me crazy. :-)
Be that as it may, I'll soon post a link to the first version of the new script.
Reply by Mark Forster
Good luck with your efforts, Andreas, and thank you for taking so much trouble over something that benefits so many people.
And a Merry Christmas to you and all Forum members and readers.
And a Merry Christmas to you and all Forum members and readers.
Reply by Andreas Hofmann
Thank you, Mark.
For the adventurous: http://dl.dropbox.com/u/1008673/mfimprovement2.js
The time differences are a result of the 'revise post' function. I fixed the problem by checking both date and post count.
For the adventurous: http://dl.dropbox.com/u/1008673/mfimprovement2.js
The time differences are a result of the 'revise post' function. I fixed the problem by checking both date and post count.
Reply by Andreas Hofmann
The 'final' version of the user script is now available, please uninstall the old one as well as the above adventurous one if you have installed them.
Get the script from here: http://cdn.ahofmann.de/markforster.net/improvements.user.js
The reason why it's 'final' is that it doesn't do that much anymore. It only loads the real script and a css file directly from my server. This means: if you install this script, you'll get all future updates and new functionality automatically.
Currently, only the "Highlight New Posts" function is available, but I will add new features soon.
Get the script from here: http://cdn.ahofmann.de/markforster.net/improvements.user.js
The reason why it's 'final' is that it doesn't do that much anymore. It only loads the real script and a css file directly from my server. This means: if you install this script, you'll get all future updates and new functionality automatically.
Currently, only the "Highlight New Posts" function is available, but I will add new features soon.
Reply by Andreas Hofmann
The script ignores posts older than a month. So if you install it for the first time, every topic within the last 30 day will be highlighted. You can either click through all of them once, or simply wait until they cross the time threshold.
Reply by Andreas Hofmann
Hint for Chrome users: Chrome seems to download the script instead of installing it if you click on the above link. Probably a security measure since the domain names don't match. Just copy the link and paste it into the location bar and it will prompt you to install it. I'll update my script download page to amend this issue.
Reply by Andreas Hofmann
It's kind of fun that I have the forum for myself, but it doesn't help with testing. :-)
Reply by Hugo Ferreira
Here'a a test messgae for you ;)
I'll check the script out once I get back.
I'll check the script out once I get back.
Reply by moises
Thank you Andreas. It appears to be functioning properly for me on Firefox 8.0.
Reply by Natalia
Thank you so much, Andreas. I had even stopped reading the forums after your script stopped working. :)
Reply by Joerg R.
Tested successfully with Chrome 16.0.912.63 m
Thx a lot for repairing
Thx a lot for repairing
Reply by MartyH
Seems to be fine in Firefox 9.0.1 with Greasemonkey 0.9.13.
Thanks for taking the time to work on this over the holidays. I do miss the other features, but this shouldn't take you away from family at this time of year.
Merry Christmas everyone! Today, it's back to work (at least a little) for me.
Thanks for taking the time to work on this over the holidays. I do miss the other features, but this shouldn't take you away from family at this time of year.
Merry Christmas everyone! Today, it's back to work (at least a little) for me.
Reply by jFenter
One of the best Christmas presents I've received this year. Thanks, Andreas! Is there a PayPal link on *your* site? :)
Reply by Hugo Ferreira
Andreas:
Any change of github'ing this version of the script? I'd like to help out with it…
I think the user script you have there now is quite outdated, right? https://github.com/andreashofmann
Any change of github'ing this version of the script? I'd like to help out with it…
I think the user script you have there now is quite outdated, right? https://github.com/andreashofmann
Reply by Andreas Hofmann
Hugo:
Alright, I will. Yes, the current one is outdated. Like everything in my github account. :-\
Everyone:
Well, I suck, and therefore everyone please uninstall and reinstall the script from http://cdn.ahofmann.de/markforster.net/improvements.user.js one more time. Final indeed. The good news is that you won't lose your saved read data.
Alright, I will. Yes, the current one is outdated. Like everything in my github account. :-\
Everyone:
Well, I suck, and therefore everyone please uninstall and reinstall the script from http://cdn.ahofmann.de/markforster.net/improvements.user.js one more time. Final indeed. The good news is that you won't lose your saved read data.
Reply by Dave D
I can't get this script to work, using IE8.0.6001. Microsoft JScript runtime error "top" is undefined.
Reply by MartyH
I'm not sure about running scripts in IE, but the original script was designed for Greasemonkey in Firefox. This one runs fine in that environment as well.
Reply by Hugo Ferreira
Andreas:
With today's redesign, the comment highlights do not show up in each topic page: it's all grey, both new and Mark's posts.
However, the script does work in the main discussion forum listing page:
http://www.markforster.net/forum
With today's redesign, the comment highlights do not show up in each topic page: it's all grey, both new and Mark's posts.
However, the script does work in the main discussion forum listing page:
http://www.markforster.net/forum
Reply by Andreas Hofmann
Hugo:
Should be fixed, no reinstall needed.
Dave:
IE doesn't support userscripts (as far as I know). Supported browsers are Firefox with GreaseMonkey, Chrome without an extension or NinjaKit and Safari with NinjaKit. Other GreaseMonkey-compatible extensions may exist, Opera will probably work.
Should be fixed, no reinstall needed.
Dave:
IE doesn't support userscripts (as far as I know). Supported browsers are Firefox with GreaseMonkey, Chrome without an extension or NinjaKit and Safari with NinjaKit. Other GreaseMonkey-compatible extensions may exist, Opera will probably work.
Reply by Dave D
Unfortunately, my employer only allows IE.
Reply by Hugo Ferreira
Andreas:
Many thanks, it's working fine now.
Many thanks, it's working fine now.
Reply by Lachlan Black
Andreas:
Hugo Ferreira:
I'm also using Firefox 9.0.1 and Greasemonkey 0.9.13, but having trouble with the script highlighting new posts. As Hugo said, works fine in the main forum page, but is not highlighting the individual posts in each topic. Scrolling to the first unread post is working fine.
Any ideas?
Hugo Ferreira:
I'm also using Firefox 9.0.1 and Greasemonkey 0.9.13, but having trouble with the script highlighting new posts. As Hugo said, works fine in the main forum page, but is not highlighting the individual posts in each topic. Scrolling to the first unread post is working fine.
Any ideas?
Reply by Hugo Ferreira
Lachlan:
Clear browser cache?
Close/restart the browser?
Clear browser cache?
Close/restart the browser?
Reply by Lachlan Black
Hugo:
Unfortunately, no. Clearing the cache resets the script but doesn't change its behaviour and restarting doesn't change anything either. No-one else seems to be having a problem, so I'm beginning to suspect the problem lies with my Firefox install -- which has been acting a bit buggy of late. Maybe time for a re-install.
Anyway, thanks for the suggestions. In any case, the script still does what it needs to do, so I can live with the loss of individual post highlighting!
By the way, Mark: congratulations on the new look. Very classy!
Unfortunately, no. Clearing the cache resets the script but doesn't change its behaviour and restarting doesn't change anything either. No-one else seems to be having a problem, so I'm beginning to suspect the problem lies with my Firefox install -- which has been acting a bit buggy of late. Maybe time for a re-install.
Anyway, thanks for the suggestions. In any case, the script still does what it needs to do, so I can live with the loss of individual post highlighting!
By the way, Mark: congratulations on the new look. Very classy!
Reply by Lachlan Black
Update: It's working again! Bizarre ...
Reply by MartyH
On Christmas Day, Andreas posted this:
Get the script from here: http://cdn.ahofmann.de/markforster.net/improvements.user.js
The reason why it's 'final' is that it doesn't do that much anymore. It only loads the real script and a css file directly from my server. This means: if you install this script, you'll get all future updates and new functionality automatically.>
He has updated it a couple of times since then and it seems that after a couple of visits to the forum, the updated version kicks in automagically.
Get the script from here: http://cdn.ahofmann.de/markforster.net/improvements.user.js
The reason why it's 'final' is that it doesn't do that much anymore. It only loads the real script and a css file directly from my server. This means: if you install this script, you'll get all future updates and new functionality automatically.>
He has updated it a couple of times since then and it seems that after a couple of visits to the forum, the updated version kicks in automagically.
Reply by jFenter
At first, the individual comments weren't being highlighted for me, either, in Chrome. All I did to fix it was to uncheck the "Highlight New Posts" option then check it again. The next discussion thread I viewed had the highlighting. I also noticed that the new "High Contrast" option didn't show up until then, either. My guess is that doing something that specifically set an option made the script reload all of the options and apply then as it should.
Reply by Natalia
Hi, Andreas! Long time user of your script! I think the new version is not working for me when a forum topic has more than one page. When I go to page 2, everything is highlighted, all the time. Is it a hiccup in my installation? I use Chrome and http://cdn.ahofmann.de/markforster.net/improvements.user.js -- thanks!
Reply by Mike D
I've noticed that too. I'm also using Chrome.
Mark had been limiting a topic to 50 posts but now several have surpassed that number and in the process a possible bug in the user script has been revealed. I'm going to uncheck and recheck the boxes in the lower right hand margin to see if that does the trick.
This did not fix it; all previously read posts on second pages are still highlighted as unread.
Mark had been limiting a topic to 50 posts but now several have surpassed that number and in the process a possible bug in the user script has been revealed. I'm going to uncheck and recheck the boxes in the lower right hand margin to see if that does the trick.
This did not fix it; all previously read posts on second pages are still highlighted as unread.